home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7718 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  812 b 

  1. Path: surfnet.nl!sun4nl!xs4all!usenet
  2. From: maris@xs4all.nl (Anthony Moendir)
  3. Newsgroups: comp.lang.c
  4. Subject: Mouse doesn't work with serial programm
  5. Date: Wed, 28 Feb 1996 22:17:41 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4h1kq0$hcs@news.xs4all.nl>
  8. NNTP-Posting-Host: ztm01-03.dial.xs4all.nl
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I'm having trouble with my mouse which is not responding after this
  12. function while closing an serial communications programm. My mouse is
  13. at COM2 and my modem at COM1. Does anyone know how to fix this?
  14.  
  15. Thanx Anthony
  16.  
  17. void   i_disable(void)
  18. {
  19.      int                c;
  20.  
  21.      disable();
  22.      c = inportb(IMR) | ~IRQ3 | ~IRQ4;
  23.      outportb(IMR, c);
  24.      outportb(portbase + IER, 0);
  25.      c = inportb(portbase + MCR) & ~MC_INT;
  26.      outportb(portbase + MCR, c);
  27.      enable();
  28. }
  29.  
  30.